def method(nums: list):
    Alice = 0
    Bob = 0
    # 轮流拿石头
    nums.reverse()
    for i, num in enumerate(nums):
        if i % 2 == 0:
            Alice += num 
        else:
            Bob += num 
    return 'Alice' if Alice > Bob else 'Bob'

if __name__ == '__main__':
    n = int(input())
    for i in range(n):
        _ = int(input())
        nums = [int(x) for x in input().split(' ')]
        result = method(nums)
        print(result)
    